package com.zmzncs.lmtc.module.customer.service;

import com.zmzncs.lmtc.common.pojo.daoer.CreateMonth;
import com.zmzncs.lmtc.module.customer.pojo.month_record.MonthRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zmzncs.lmtc.module.customer.pojo.month_record.MonthRecordDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 月租车信息表 服务类
 * </p>
 *
 * @author 作者
 * @since 2021-02-05
 */
public interface MonthRecordService extends IService<MonthRecord> {

    /**保存车场月卡开户信息 */
    int addMonthRecord(CreateMonth createMonth);

    /** 根据车场Id、车牌号查询之前是否购买月卡*/
    List<MonthRecord> getRecordByParkIdAndCarNo(Long parkId,String carNumber);

    /**昨天、今天、本周、本月、本年的车场主月租缴费*/
    String getMonthRecordAmountByDate(Long parkId,Integer dateType);

    /**查询月租列表信息 */
    List<MonthRecordDTO> getMonthRecordByStatus(Long parkId, Integer monthStatus);

}
